﻿/***************************************************************************
*		功能：     投诉记录实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 投诉记录
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Complain", EntityName = "Complain")]
	public partial class Complain :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return ComplainId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// ComplainId
		/// </summary>
		[HColumn("ComplainId", Remake = "ComplainId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int ComplainId { set; get; }
        

		/// <summary>
		/// 客户id
		/// </summary>
		[HColumn("CustomeId", Remake = "客户id", DataType = "int")]
		public int CustomeId { set; get; }
        

		/// <summary>
		/// 投诉日期
		/// </summary>
		[HColumn("Time", Remake = "投诉日期", DataType = "datetime")]
		public DateTime Time { set; get; }
        

		/// <summary>
		/// 被投诉人
		/// </summary>
		[HColumn("Employee", Remake = "被投诉人", DataType = "nvarchar" , Length =100)]
		public string Employee { set; get; }
        

		/// <summary>
		/// 是否已处理
		/// </summary>
		[HColumn("IsHandle", Remake = "是否已处理", DataType = "bit")]
		public bool IsHandle { set; get; }
        

		/// <summary>
		/// 投诉内容
		/// </summary>
		[HColumn("Content", Remake = "投诉内容", DataType = "text" , IsNullable = true)]
		public string Content { set; get; }
        

		/// <summary>
		/// 处理内容
		/// </summary>
		[HColumn("HandleContent", Remake = "处理内容", DataType = "text" , IsNullable = true)]
		public string HandleContent { set; get; }
        

		/// <summary>
		/// 备注
		/// </summary>
		[HColumn("Memo", Remake = "备注", DataType = "text" , IsNullable = true)]
		public string Memo { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// ComplainId
			 /// </summary>
			 public static Field ComplainId = new Field("T_Complain","ComplainId");
	    	 

			 /// <summary>
			 /// 客户id
			 /// </summary>
			 public static Field CustomeId = new Field("T_Complain","CustomeId");
	    	 

			 /// <summary>
			 /// 投诉日期
			 /// </summary>
			 public static Field Time = new Field("T_Complain","Time");
	    	 

			 /// <summary>
			 /// 被投诉人
			 /// </summary>
			 public static Field Employee = new Field("T_Complain","Employee");
	    	 

			 /// <summary>
			 /// 是否已处理
			 /// </summary>
			 public static Field IsHandle = new Field("T_Complain","IsHandle");
	    	 

			 /// <summary>
			 /// 投诉内容
			 /// </summary>
			 public static Field Content = new Field("T_Complain","Content");
	    	 

			 /// <summary>
			 /// 处理内容
			 /// </summary>
			 public static Field HandleContent = new Field("T_Complain","HandleContent");
	    	 

			 /// <summary>
			 /// 备注
			 /// </summary>
			 public static Field Memo = new Field("T_Complain","Memo");
	    	 

        }
        #endregion
		  
	 
	}
    
}